package com.baiduspring.utils;

import com.baiduspring.error.BaiduSpringException;

public class PreconditionsUtils {
    public static void checkArgument(boolean expression, Object errorMessage) {
        if (!expression) {
            throw new BaiduSpringException(String.valueOf(errorMessage));
        }
    }
}
